<form method="post" enctype="multipart/form-data" target="_blank" id="form-order">
    <div class="table-responsive">
        <table class="table table-bordered table-hover">

            <thead>
            <tr>
                <td class="text-center" width="65px;">序号</td>
                <td class="text-center">等级名称</td>
                <td class="text-center">有效期（月）</td>
                <td class="text-center">价格</td>
                <td class="text-center">商品折扣</td>
                <td class="text-center">打位预约折扣</td>
                <td class="text-center">排序</td>
                <td class="text-center">操作</td>
            </tr>
            </thead>

            <tbody>
            <volist name="list" id="list">
                <tr>

                    <td class="text-center">{$list.gradeId}</td>
                    <td class="text-center">{$list.gradeName}</td>
                    <td class="text-center">{$list.validMonth}（月）</td>
                    <td class="text-center">{$list.gradePrice}</td>
                    <td class="text-center">{$list.gradeDiscount}</td>
                    <td class="text-center">{$list.reservationDiscount}</td>
                    <td class="text-center">
                        <input type="text" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onpaste="this.value=this.value.replace(/[^\d]/g,'')" onchange="updateSort('grade','gradeId','{$list.gradeId}','gradeSort',this)" size="4" value="{$list.gradeSort}" />
                    </td>
                    <td class="text-center">
                        <a href="javascript:;" onclick="layerAlert('编辑等级', '{:U('user/gradeEdit', array('gradeId' => $list.gradeId))}', '70%', '85%')" class="btn btn-primary" title="编辑"><i class="fa fa-pencil"></i></a>
                        <a href="javascript:;" onclick="delfunc(this)" data-url="{:url('user/gradeDel')}" data-id="{$list.gradeId}"  class="btn btn-danger" title="删除"><i class="fa fa-trash-o"></i></a>
                    </td>
                </tr>
            </volist>

            </tbody>
        </table>
    </div>
</form>
<div class="row">
    <div class="col-sm-3 text-left"></div>
    <div class="col-sm-9 text-right">{$page}</div>
</div>
<script>
    // 点击分页触发的事件
    $(".pagination  a").click(function(){
        cur_page = $(this).data('p');
        ajax_get_table('search-form', cur_page);
    });

</script>